BIN = mini_tcpdump
OBJS = main.o
OBJS += util_net.o
OBJS += util_debug.o
CFLAGS = -Wall -Os
INCLUDES = -I. -I./include
LIBS = -lpcap

$(BIN): $(OBJS)
	$(CC) -o $(BIN) $(OBJS) $(LIBS)

%.o: %.c
	$(CC) -c $< -o $@ $(CFLAGS) $(INCLUDES)

clean:
	rm $(BIN) $(OBJS)


